//
//  NetWork.h
//  HelloFriend
//
//  Created by going-HNL on 16/3/25.
//  Copyright © 2016年 going-HNL. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^SuccessBlock) (id responseObject);
typedef void (^RestultBlock) (BOOL reslut);
typedef void (^FailureBlock)(NSError * error);

@interface NetWork : NSObject
/**
 *  获取注册码
 */
+ (void)registerCode:(NSString *)str success:(SuccessBlock)suceess failed:(FailureBlock)failed;
/**
 *  用户注册
 */
+ (void)registerUser:(NSDictionary *)dic success:(SuccessBlock)suceess failed:(FailureBlock)failed;
/**
 *  登录
 */
+ (void)login:(NSDictionary *)dic success:(SuccessBlock)suceess failed:(FailureBlock)failed;
/**
 *  获取用户信息
 */
+ (void)infoSuccess:(SuccessBlock)suceess failed:(FailureBlock)failed;
/**
 *  设置个人信息
 */
+ (void)headImageData:(NSData *)data andDic:(NSDictionary *)dic success:(SuccessBlock)suceess failed:(FailureBlock)failed;
/**
 *  设置个人信息
 */
+ (void)setInfo:(NSDictionary *)dic success:(SuccessBlock)suceess failed:(FailureBlock)failed;
@end
